﻿using Microsoft.EntityFrameworkCore;
using System;
using System.ComponentModel.DataAnnotations.Schema;


namespace CRM.Models
{
    [Table("customer_follow")]
    public class CustomerFollow : BaseModel
    {
        public int Id { get; set; }
        public int UserId { get; set; }

        public int OemId { get; set; }

        public int CompanyId { get; set; }
        public int GroupId { get; set; }

        public int CustomerId { get; set; }
        [Comment("方式 1打电话 2发邮件 3发短信 4见面拜访")]
        public int Type { get; set; }

        public enum TypeEnum
        {
            打电话 = 1,
            发邮件,
            发短信,
            见面拜访
        }
        [Comment("内容")]
        public string Content { get; set; }


        [Column(TypeName = "timestamp"), Comment("下次联系")]
        public DateTime? NextAt { get; set; }
#nullable enable
        public User ?User { get; set; }
#nullable restore

    }
}
